﻿using System.Collections.Generic;

namespace HBase {
    public class MongoLogTask :ZtTask {


        IMServer mServer = GuidangFactray.getDal<IMServer>();
        protected override bool init() {
            time = 1000;
            return true;
        }

        public override bool excute() {
            Dictionary<string ,List<BaseMongoLog>> dict = GuidangCache.getAllMongoData();
            foreach( var t in dict ) {
                mServer.InsertBatch(t.Value);
            }
            return true;
        }


    }
}
